<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>无标题文档</title>
    <script src="../scripts/jquery-1.3.1.js"></script>
    <script type="text/javascript">
    	
    
        //把所有匹配的元素span用其他元素strong的结构化标记包裹起来。
        $(function(){
        	$("span").wrap("<strong></strong>");
        })
	</script>
</head>

<body>
<h3>例子</h3>
	
	<span>选择你最喜欢的水果</span>
	<ul>
		<li>苹果</li>
		<li>橘子</li>
		<li>菠萝</li>
	</ul>
	
</body>
</html>
